# -*- coding: utf-8 -*-

from odoo import models, fields, api


class StockMove(models.Model):
    _inherit = 'stock.move'
    raw_pick_production_id = fields.Many2one('mrp.production', string=u'领料的MO单', index=True)
    re_picking_production_id =fields.Many2one('mrp.production',string=u'补料', index=True)
    return_raw_production_id = fields.Many2one('mrp.production', string=u'退料', index=True)
    scarp_production_id = fields.Many2one('mrp.production', string=u'报废的MO', index=True)
    @api.model
    def create(self, vals_list):
        return super(StockMove, self).create(vals_list)
